package com.sys.app.entity.tag;

import org.thymeleaf.dialect.AbstractProcessorDialect;
import org.thymeleaf.processor.IProcessor;
import org.thymeleaf.standard.StandardDialect;

import java.util.HashSet;
import java.util.Set;

public class CustomTag extends AbstractProcessorDialect {
    /**
     * 定义名称
     */
    private static final String NAME="easyui控件自定义封装";
    /**
     * 定义属性
     */
    private static final String PREFIX="easyui";

    public CustomTag() {
        super(NAME, PREFIX, StandardDialect.PROCESSOR_PRECEDENCE);
    }

    @Override
    public Set<IProcessor> getProcessors(String s) {
        final Set<IProcessor> processor=new HashSet<>();

        processor.add(new easyUITextBox(PREFIX));
        processor.add(new easyUIComBox(PREFIX));
        processor.add(new easyUICheckBox(PREFIX));
        processor.add(new easyUIButton(PREFIX));
        processor.add(new easyUIHidden(PREFIX));
        return processor;
    }
}
